# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=xdg-desktop-portal-wlr
pkgver=0.1.0
pkgrel=1
pkgdesc="wlroots implementation of xdg-desktop-portal"
url="https://github.com/emersion/xdg-desktop-portal-wlr"
arch="all"
license="MIT"
depends="xdg-desktop-portal elogind"
makedepends="wlroots-dev pipewire-dev meson"
source="
	https://github.com/emersion/xdg-desktop-portal-wlr/releases/download/v0.1.0/xdg-desktop-portal-wlr-$pkgver.tar.gz
	0001-core-fix-error-handling-in-main.patch
	"
subpackages="$pkgname-dbg"
options="!check" # No check yet

build() {
	abuild-meson build
	ninja -C build
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
	rm -rf "$pkgdir"/usr/lib/systemd
}

sha512sums="07ae2ba3583e53f3b0e5b97cb60cb85ae835c403906f3b214f6feedc615e3266f5a0f9dc12997802834fdeb2958f6b22c195eebe420a93b3a697460a2a4e3367  xdg-desktop-portal-wlr-0.1.0.tar.gz
719d1a8e9f61e95bad9af068221bee0f1383bee424071459cd1a676281f663c33cad8b45604c53ede9bdaeb5bbfe26a0b6100d2349e1cff0ac3ec4e9d96102ba  0001-core-fix-error-handling-in-main.patch"
